// pages/my-sub-package/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: [
      {packageName: '分包一', packagePath: '/package_01/pages/index/index'},
      {packageName: '分包二', packagePath: '/package_02/pages/index/index'},
      {packageName: '分包三', packagePath: '/file_upload/pages/index/index'},
      {packageName: '使用wx.previewImage预览缩放图片', packagePath: '/package_01/pages/preview-pic01/index'},
      {packageName: '使用手指间距离计算缩放及移动', packagePath: '/package_01/pages/preview-pic02/index'},
      {packageName: '获取位置信息', packagePath: '/package_01/pages/my-location/index'},
      {packageName: '裁剪图片', packagePath: '/package_01/pages/cut-pic/index'},
      {packageName: '裁剪图片1', packagePath: '/package_01/pages/take-pic-cut/index'},
      {packageName: '裁剪图片2', packagePath: '/package_01/pages/take-pic-cut-2/index'},
      {packageName: '抛物线实现', packagePath: '/package_01/pages/parabola/index'},
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    wx.setNavigationBarTitle({
      title: options.name,
    })
  },

  toSubPackage(e){
    const { path } = e.currentTarget.dataset
    wx.navigateTo({
      url: path,
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})